package com.tjl.yangxixis.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;

import com.tjl.yangxixis.R;

/**
 * 条款和隐私
 */
public class ClauseActivity extends Activity implements View.OnClickListener{

    private  WebView mWeb;
    private ImageView mBack;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_clause);
           initview();
    }


    void initview(){
        mWeb = (WebView) findViewById(R.id.webViews);
        mWeb.loadUrl("http://www.91yangxixi.com/api/miss/UsePrivacyTerms2.html");
        mWeb.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
        });

        mBack = (ImageView) findViewById(R.id.iv_clause_back);
        mBack.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.iv_clause_back:
                finish();
                break;
        }
    }
}
